<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/include/taglibs.jsp"%>

<jsp:include page="/WEB-INF/common/menu/ADMIN_LEFT_MENU.html" flush="false"/>

<div class="span9" id="content">
	<!-- block -->
	<div class="block">
		<div class="navbar navbar-inner block-header">
			<div class="muted pull-left">목록</div>
		</div>
		<div class="block-content collapse in">
			<div class="span12">
			<form action="?" method="get" id="">
				<input type="hidden" name="menu_seq" value="${param.menu_seq }" />
				<div id="example_wrapper" class="dataTables_wrapper form-inline"
					role="grid">
					<div class="row">
						<div class="span6">
							<div id="example_length" class="dataTables_length">
								<label><select size="1" name="recordCountPerPage" aria-controls="example">
										<option value="10" <c:if test="${'10'==param.recordCountPerPage }">selected="selected"</c:if>>10</option>
										<option value="25" <c:if test="${'25'==param.recordCountPerPage }">selected="selected"</c:if>>25</option>
										<option value="50" <c:if test="${'50'==param.recordCountPerPage }">selected="selected"</c:if>>50</option>
										<option value="100" <c:if test="${'100'==param.recordCountPerPage }">selected="selected"</c:if>>100</option></select> records per page</label>
							</div>
						</div>
						<div class="span6">
							<div class="dataTables_filter" id="example_filter">
								<label>Search: <input type="text" name="srcValue"
									aria-controls="example" value="${param.srcValue }"> <button class="btn btn-primary" >조회</button></label>
									
							</div>
						</div>
					</div>
					<table cellpadding="0" cellspacing="0" border="0"
						class="table table-striped table-bordered dataTable" id="example"
						aria-describedby="example_info">
						<thead>
							<tr role="row">
								<th style="width: 50px;text-align: center;" >번호</th>
								<th style="text-align: center;">질문</th>
							</tr>
						</thead>

						<tbody role="alert" aria-live="polite" aria-relevant="all">
	<c:if test="${list !=null && fn:length(list)>0 }">
		<c:forEach var="map" items="${list}" varStatus="status">
							<tr class="gradeA <c:if test="${status.count/2==0 }">odd</c:if><c:if test="${status.count/2==1 }">even</c:if>">
								<td class=" sorting_1" style="text-align: center;">
								${_page.nowCnt - status.index}
								</td>
								<td class=" "><a href="./faqEdit.do?menu_seq=${param.menu_seq}&fq_seq=${map.fq_seq}${_page.prameter }">${map.title }</a></td>
							</tr>
		</c:forEach>
	</c:if>
						</tbody>
					</table>
					${paging }
<!-- 					<div class="row"> -->
<!-- 						<div class="span6"> -->
<%-- 							<div class="dataTables_info" id="example_info">Showing 1 to 10 of ${page.totalRecordCount } entries</div> --%>
<!-- 						</div> -->
<!-- 						<div class="span6"> -->
<!-- 							<div class="dataTables_paginate paging_bootstrap pagination"> -->
<!-- 								<ul> -->
<!-- 									<li class="prev disabled"><a href="#">이전</a></li> -->
<!-- 									<li class="active"><a href="#">1</a></li> -->
<!-- 									<li><a href="#">2</a></li> -->
<!-- 									<li><a href="#">3</a></li> -->
<!-- 									<li><a href="#">4</a></li> -->
<!-- 									<li><a href="#">5</a></li> -->
<!-- 									<li class="next"><a href="#">다음</a></li> -->
<!-- 								</ul> -->
<!-- 							</div> -->
<!-- 						</div> -->
<!-- 					</div> -->
					<div class="row">
						<div class="span12">
							<div class="dataTables_paginate paging_bootstrap pagination">
								<button class="btn btn-primary" onclick="location.href='./faqEdit.do?menu_seq=${param.menu_seq}&fq_seq=';return false;">글쓰기</button>
							</div>
						</div>
					</div>
				</div>
			</form>
			</div>
		</div>
	</div>
</div>



<script type="text/javascript">
$(document).ready(function()
{
	<c:if test="${'Y'==param.reload }">
	location.href="./menuList.do";
	</c:if>
    $('#nestable3').nestable();
});
</script>